package com.ruoyi.project.cms.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ruoyi.framework.web.controller.BaseController;

@Controller("siteIndexController")
@RequestMapping("/site/index")
public class IndexController extends BaseController {
	private String prefix = "cms";

	@GetMapping()
	public String index() {
		return prefix + "/index";
	}

	@GetMapping("/article/{id}")
	public String article(@PathVariable Integer id) {
		return prefix + "/tpl_article";
	}

	@GetMapping("/category/{id}")
	public String category(@PathVariable Integer id) {
		return prefix + "/tpl_category";
	}

	@GetMapping("/album/")
	public String album() {
		return prefix + "";
	}
}
